/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.zaahir.assignment2.OCPViolation.Conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.zaahir.assignment2.OCPViolation.Impl.LoanRequestValidator;
import za.ac.cput.zaahir.assignment2.OCPViolation.Impl.PersonLoanRequest;

/**
 *
 * @author Nashief
 */
@Configurable
public class AppConf {
    @Bean
    public LoanRequestValidator lrv()
    {
        return new LoanRequestValidator(100);
    } 
    @Bean 
   public PersonLoanRequest plr()
   {
    return new PersonLoanRequest();   
   }
}
